﻿namespace ACCOUNTING.LVY.Business
{
    using ACCOUNTING;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Data;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    public class clsNguoiDung
    {
        private string mDiaChi = "";
        private string mDienThoai = "";
        private string mFax = "";
        private int mGioiHanDuLieu = 0;
        private string mKhoa = "";
        private string mKhoaDonVi = "";
        private string mKhoaNhanVien = "";
        private string mKhoaNhom = "";
        private string mLoaiNguoiDung = "";
        private int mLogIn = 0;
        private string mMa = "";
        private string mMail = "";
        private string mMatKhau = "";
        private int mSend = 0;
        private string mTenAnh = "";
        private string mTenDangNhap = "";
        private string mTenViet = "";

        public void ChangePassword(string strUserName, string strPasswordMD5)
        {
            string commandText = " UPDATE HT_NguoiDung SET MatKhau = '" + strPasswordMD5 + "' WHERE TenDangNhap = '" + strUserName + "'";
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        public bool CheckExists(string strUserName, string strKhoaNhanVien)
        {
            string commandText = " SELECT * FROM HT_NguoiDung Where TenDangNhap = '" + strUserName + "'  And KhoaNhanVien <> '" + strKhoaNhanVien + "'";
            return (DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0].Rows.Count > 0);
        }

        public bool CheckExistsUsername(string strUserName)
        {
            string commandText = " SELECT * FROM HT_NguoiDung Where TenDangNhap = '" + strUserName + "' ";
            return (DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0].Rows.Count > 0);
        }

        public bool CheckIvalid(string pTenNguoiDung, string pMatKhau)
        {
            bool flag=false;
            string str2 = "";
            string str = "";
            IDataParameter parameter = null;
            try
            {
                string str3 = modGeneral.MD5Encrypt(pMatKhau);
                string commandText = "SELECT * FROM HT_NguoiDung WHERE TenDangNhap = '" + pTenNguoiDung + "'";
                DataTable table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[] { parameter }).Tables[0];
                if (table.Rows.Count == 1)
                {
                    str = Conversions.ToString(table.Rows[0]["KhoaNhanVien"]);
                    str2 = Conversions.ToString(table.Rows[0]["MatKhau"]);
                }
                if (str3.Trim() == str2.Trim())
                {
                    this.Load(pTenNguoiDung);
                    return true;
                }
                flag = false;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public void ClearQuyenDuyetDonHang()
        {
            string commandText = " DELETE FROM HT_QuyenDuyetDonHang";
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        public bool DeleteUser(string pUserName)
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[3];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@UserName", DbType.Int64, ParameterDirection.Input, pUserName);
                commandParameters[1] = DBHelper.createParameter("@UserMD5", DbType.Int64, ParameterDirection.Input, modGeneral.MD5Encrypt(pUserName));
                commandParameters[2] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                bool flag2 = DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "HT_sp_NguoiDungDel", commandParameters) > 0;
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public DataTable GetList()
        {
            IDataParameter parameter = null;
            DataTable table;
            try
            {
                string commandText = "SELECT ND.*,Rtrim(NV.HoLot) + ' ' + Rtrim(NV.Ten) as TenNhanVien, G.TenNhom  FROM HT_NguoiDung ND LEFT JOIN HT_NhomNguoiDung G on ND.KhoaNhom = G.KhoaNhom  LEFT JOIN tbl_DMNhanVien NV on ND.KhoaNhanVien = NV.Khoa  WHERE ND.KhoaNhanVien <> '0000000000' ORDER BY ND.TenDangNhap";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[] { parameter }).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetListGroup()
        {
            IDataParameter parameter = null;
            DataTable table;
            try
            {
                string commandText = " SELECT KhoaNhom, Ten" + modGeneral.H_LANGUAGE + " as Ten FROM HT_NhomNguoiDung ";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[] { parameter }).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetMenuRight(string F001, string pPhanHe)
        {
            DataTable table;
            IDataParameter[] commandParameters = new IDataParameter[5];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@UserName", DbType.Int64, ParameterDirection.Input, F001);
                commandParameters[1] = DBHelper.createParameter("@PhanHe", DbType.Int64, ParameterDirection.Input, pPhanHe);
                commandParameters[2] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                commandParameters[3] = DBHelper.createParameter("@Language", DbType.Int64, ParameterDirection.Input, modGeneral.H_LANGUAGE);
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "HT_GetMenuRightForUser", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetPhanHe(string strCondition = "")
        {
            DataTable table;
            string commandText = "";
            string str2 = "";
            try
            {
                str2 = " WHERE HienThi = 1 ";
                if (strCondition.Trim() != "")
                {
                    str2 = str2 + " AND " + strCondition;
                }
                commandText = " SELECT Ma as Khoa , Rtrim(Ten" + modGeneral.H_LANGUAGE + ") as Ten  FROM HT_PhanHe " + str2 + " ORDER BY STT";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetRight(string pUserName, string pMenuKey)
        {
            DataTable table;
            try
            {
                string commandText = "SELECT * FROM HT_Security WHERE RTRIM(F001) = '" + modGeneral.MD5Encrypt(pUserName.Trim()) + "' AND Rtrim(F002) = '" + pMenuKey.Trim() + "'";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public bool Load(string pUserName)
        {
            bool flag=false;
            try
            {
                string commandText = "SELECT * FROM HT_NguoiDung WHERE Rtrim(TenDangNhap) = '" + pUserName.Trim() + "'";
                IDataReader dataReader = DBHelper.ExecuteReader(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                if (dataReader.Read())
                {
                    this.mTenDangNhap = Conversions.ToString(modGeneral.GetValue(dataReader, 0, modGeneral.typeOfColumn.GetString));
                    this.mKhoaNhanVien = Conversions.ToString(modGeneral.GetValue(dataReader, 1, modGeneral.typeOfColumn.GetString));
                    this.mMatKhau = Conversions.ToString(modGeneral.GetValue(dataReader, 2, modGeneral.typeOfColumn.GetString));
                    this.mKhoaNhom = Conversions.ToString(modGeneral.GetValue(dataReader, 3, modGeneral.typeOfColumn.GetString));
                }
                dataReader.Close();
                commandText = "SELECT Ma, TenViet, TenAnh, DiaChi, DienThoai, Email, Fax FROM DM_DoiTuong Where Khoa = '" + this.mKhoaNhanVien + "'";
                dataReader = DBHelper.ExecuteReader(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                if (dataReader.Read())
                {
                    this.mMa = Conversions.ToString(modGeneral.GetValue(dataReader, 0, modGeneral.typeOfColumn.GetString));
                    this.mTenViet = Conversions.ToString(modGeneral.GetValue(dataReader, 1, modGeneral.typeOfColumn.GetString));
                    this.mTenAnh = Conversions.ToString(modGeneral.GetValue(dataReader, 2, modGeneral.typeOfColumn.GetString));
                    this.mDiaChi = Conversions.ToString(modGeneral.GetValue(dataReader, 3, modGeneral.typeOfColumn.GetString));
                    this.mDienThoai = Conversions.ToString(modGeneral.GetValue(dataReader, 4, modGeneral.typeOfColumn.GetString));
                    this.mMail = Conversions.ToString(modGeneral.GetValue(dataReader, 5, modGeneral.typeOfColumn.GetString));
                    this.mFax = Conversions.ToString(modGeneral.GetValue(dataReader, 6, modGeneral.typeOfColumn.GetString));
                }
                dataReader.Close();
                commandText = "SELECT Loai FROM HT_NhomNguoiDung WHERE Khoa = '" + this.mKhoaNhom.Trim() + "'";
                dataReader = DBHelper.ExecuteReader(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                if (dataReader.Read())
                {
                    this.mLoaiNguoiDung = Conversions.ToString(modGeneral.GetValue(dataReader, 0, modGeneral.typeOfColumn.GetString));
                }
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public bool LoadDL(string pKhoa)
        {
            bool flag=false;
            try
            {
                string commandText = "SELECT * FROM HT_NguoiDung WHERE KhoaNhanVien = '" + pKhoa + "'";
                IDataReader dataReader = DBHelper.ExecuteReader(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                if (dataReader.Read())
                {
                    this.mTenDangNhap = Conversions.ToString(modGeneral.GetValue(dataReader, 0, modGeneral.typeOfColumn.GetString));
                    this.mKhoaNhanVien = Conversions.ToString(modGeneral.GetValue(dataReader, 1, modGeneral.typeOfColumn.GetString));
                    this.mMatKhau = Conversions.ToString(modGeneral.GetValue(dataReader, 2, modGeneral.typeOfColumn.GetString));
                    this.mKhoaNhom = Conversions.ToString(modGeneral.GetValue(dataReader, 3, modGeneral.typeOfColumn.GetString));
                    this.mKhoaDonVi = Conversions.ToString(modGeneral.GetValue(dataReader, 4, modGeneral.typeOfColumn.GetString));
                    this.mLogIn = Conversions.ToInteger(modGeneral.GetValue(dataReader, 5, modGeneral.typeOfColumn.GetInt32));
                }
                dataReader.Close();
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public void LoggedIn(string strUserName, int iLog)
        {
            try
            {
                string commandText = "UPDATE HT_NguoiDung set LogIn = " + Conversions.ToString(iLog) + " WHERE TenDangNhap = '" + strUserName + "'";
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show("Error at LoggedIn function:" + exception.Message);
                ProjectData.ClearProjectError();
            }
        }

        public bool Save(int KhoiPhucQuyenNhom, string TinhTrang)
        {
            bool flag2;
            IDataParameter[] commandParameters = new IDataParameter[10];
            if (this.mMatKhau.Trim() != "")
            {
                this.mMatKhau = modGeneral.MD5Encrypt(this.mMatKhau);
            }
            try
            {
                commandParameters[0] = DBHelper.createParameter("@KhoaNhanVien", DbType.Int64, ParameterDirection.Input, this.mKhoaNhanVien);
                commandParameters[1] = DBHelper.createParameter("@TenDangNhap", DbType.Int64, ParameterDirection.Input, this.mTenDangNhap);
                commandParameters[2] = DBHelper.createParameter("@TenDangNhapMd", DbType.Int64, ParameterDirection.Input, modGeneral.MD5Encrypt(this.mTenDangNhap));
                commandParameters[3] = DBHelper.createParameter("@MatKhau", DbType.Int64, ParameterDirection.Input, this.mMatKhau);
                commandParameters[4] = DBHelper.createParameter("@KhoaNhom", DbType.Int64, ParameterDirection.Input, this.mKhoaNhom);
                commandParameters[5] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, this.mKhoaDonVi);
                commandParameters[6] = DBHelper.createParameter("@GioiHanDuLieu", DbType.Double, ParameterDirection.Input, this.mGioiHanDuLieu);
                commandParameters[7] = DBHelper.createParameter("@KhoiPhucQuyenNhom", DbType.Double, ParameterDirection.Input, KhoiPhucQuyenNhom);
                commandParameters[8] = DBHelper.createParameter("@TinhTrang", DbType.Int16, ParameterDirection.Input, TinhTrang);
                bool flag = DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "HT_sp_NguoiDung", commandParameters) > 0;
                flag2 = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag2 = false;
                ProjectData.ClearProjectError();
                return flag2;
                ProjectData.ClearProjectError();
            }
            return flag2;
        }

        public bool SaveRight(string pUserName, string pMenuKey, string pView, string pAdd, string pEdit, string pDel)
        {
            bool flag2;
            IDataParameter[] commandParameters = new IDataParameter[6];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@F001", DbType.Int64, ParameterDirection.Input, pUserName);
                commandParameters[1] = DBHelper.createParameter("@F002", DbType.Int64, ParameterDirection.Input, pMenuKey.Trim());
                commandParameters[2] = DBHelper.createParameter("@F003", DbType.Int64, ParameterDirection.Input, pView);
                commandParameters[3] = DBHelper.createParameter("@F004", DbType.Int64, ParameterDirection.Input, pAdd);
                commandParameters[4] = DBHelper.createParameter("@F005", DbType.Int64, ParameterDirection.Input, pEdit);
                commandParameters[5] = DBHelper.createParameter("@F006", DbType.Int64, ParameterDirection.Input, pDel);
                bool flag = DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "HT_sp_Security", commandParameters) > 0;
                flag2 = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag2 = false;
                ProjectData.ClearProjectError();
                return flag2;
                ProjectData.ClearProjectError();
            }
            return flag2;
        }

        public DataTable ShowListByField()
        {
            IDataParameter parameter = null;
            DataTable table;
            try
            {
                string commandText = "select ND.KhoaNhanVien as Khoa,DT.TenViet as TenNhanVien,NND.TenViet as NhomNguoiDung ,ND.TenDangNhap as TenDangNhap  from HT_NguoiDung ND  LEFT JOIN DM_DoiTuong DT on ND.KhoaNhanVien = DT.Khoa  LEFT JOIN HT_NhomNguoiDung NND on ND.KhoaNhom = NND.Khoa  Where ND.KhoaNhanVien <> '000000000000000' ";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[] { parameter }).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable ShowListQuyenDuyetDonHang(string strLoaiTien)
        {
            IDataParameter parameter = null;
            DataTable table;
            try
            {
                string commandText = "select ND.KhoaNhanVien as Khoa,DT.TenViet as TenNhanVien,NND.TenViet as NhomNguoiDung ,ND.TenDangNhap as TenDangNhap,  IsNull(Q.DuocPhepDuyet,0) As DuocPhepDuyet, IsNull(Q.GioiHanTu,0) As GioiHanTu, IsNull(Q.GioiHanDen,0) As GioiHanDen  from HT_NguoiDung ND  LEFT JOIN DM_DoiTuong DT on ND.KhoaNhanVien = DT.Khoa  LEFT JOIN HT_NhomNguoiDung NND on ND.KhoaNhom = NND.Khoa  LEFT JOIN HT_QuyenDuyetDonHang Q ON RTRIM(ND.TenDangNhap) = RTRIM(Q.TenDangNhap)  Where ND.KhoaNhanVien <> '000000000000000' ";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[] { parameter }).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public bool UpdateQuyenDuyetDonHang(string mTenDangNhap, string mLoaiTien, int mDuocPhepDuyet, double mGioiHanTu, double mGioiHanDen, int mTatCaDonHang)
        {
            bool flag2;
            IDataParameter[] commandParameters = new IDataParameter[6];
            if (this.mMatKhau.Trim() != "")
            {
                this.mMatKhau = modGeneral.MD5Encrypt(this.mMatKhau);
            }
            try
            {
                commandParameters[0] = DBHelper.createParameter("@TenDangNhap", DbType.Int64, ParameterDirection.Input, mTenDangNhap);
                commandParameters[1] = DBHelper.createParameter("@LoaiTien", DbType.Int64, ParameterDirection.Input, mLoaiTien);
                commandParameters[2] = DBHelper.createParameter("@DuocPhepDuyet", DbType.Double, ParameterDirection.Input, mDuocPhepDuyet);
                commandParameters[3] = DBHelper.createParameter("@GioiHanTu", DbType.Date, ParameterDirection.Input, mGioiHanTu);
                commandParameters[4] = DBHelper.createParameter("@GioiHanDen", DbType.Date, ParameterDirection.Input, mGioiHanDen);
                commandParameters[5] = DBHelper.createParameter("@TatCaDonHang", DbType.Double, ParameterDirection.Input, mTatCaDonHang);
                bool flag = DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "HT_sp_QuyenDuyetDonHang", commandParameters) > 0;
                flag2 = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag2 = false;
                ProjectData.ClearProjectError();
                return flag2;
                ProjectData.ClearProjectError();
            }
            return flag2;
        }

        public string DiaChi
        {
            get
            {
                return this.mDiaChi;
            }
            set
            {
                this.mDiaChi = value;
            }
        }

        public string DienThoai
        {
            get
            {
                return this.mDienThoai;
            }
            set
            {
                this.mDienThoai = value;
            }
        }

        public string Fax
        {
            get
            {
                return this.mFax;
            }
            set
            {
                this.mFax = value;
            }
        }

        public int GioiHanDuLieu
        {
            get
            {
                return this.mGioiHanDuLieu;
            }
            set
            {
                this.mGioiHanDuLieu = value;
            }
        }

        public string KhoaDonVi
        {
            get
            {
                return this.mKhoaDonVi;
            }
            set
            {
                this.mKhoaDonVi = value;
            }
        }

        public string KhoaNhanVien
        {
            get
            {
                return this.mKhoaNhanVien;
            }
            set
            {
                this.mKhoaNhanVien = value;
            }
        }

        public string KhoaNhom
        {
            get
            {
                return this.mKhoaNhom;
            }
            set
            {
                this.mKhoaNhom = value;
            }
        }

        public string LoaiNguoiDung
        {
            get
            {
                return this.mLoaiNguoiDung;
            }
            set
            {
                this.mLoaiNguoiDung = value;
            }
        }

        public string Ma
        {
            get
            {
                return this.mMa;
            }
            set
            {
                this.mMa = value;
            }
        }

        public string Mail
        {
            get
            {
                return this.mMail;
            }
            set
            {
                this.mMail = value;
            }
        }

        public string MatKhau
        {
            get
            {
                return this.mMatKhau;
            }
            set
            {
                this.mMatKhau = value;
            }
        }

        public string TenAnh
        {
            get
            {
                return this.mTenAnh;
            }
            set
            {
                this.mTenAnh = value;
            }
        }

        public string TenDangNhap
        {
            get
            {
                return this.mTenDangNhap;
            }
            set
            {
                this.mTenDangNhap = value;
            }
        }

        public string TenViet
        {
            get
            {
                return this.mTenViet;
            }
            set
            {
                this.mTenViet = value;
            }
        }
    }
}

